<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%--
  Created by IntelliJ IDEA.
  User: Administrator
  Date: 2021/6/13
  Time: 18:54
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Title</title>
    <link rel="stylesheet" type="text/css" href="css/book_examine.css">
</head>
<body>
<c:if test="${be != 1}">
    当前没有需要审核的书籍
</c:if>
<c:if test="${be == 1}">
    待审核：
    <table class="tablelist">
        <thead>
        <tr>
            <th>书名</th>
            <th>作者</th>
            <th>类型</th>
            <th>简介</th>
            <th width="120px" colspan="2">状态</th>
        </tr>
        </thead>
        <c:forEach items="${book_examine}" var="book_examine">
            <%--            <form action="book_examine_dealServlet" method="post" >--%>
            <tr>
                <td>${book_examine.bookname}</td>
                <td>${book_examine.author_name}</td>
                <td>${book_examine.types}</td>
                <td>${book_examine.brief_introduction}</td>
                <td>
                        <%--                        <input type="text" name="bookname" value="${mybook.bookname}" hidden="hidden"/>--%>
                        <%--                        <input type="text" name="author_name" value="${mybook.author_name}" hidden="hidden"/>--%>
                        <%--                        <input type="text" name="types" value="${mybook.types}" hidden="hidden"/>--%>
                        <%--                        <input type="text" name="brief_introduction" value="${mybook.brief_introduction}" hidden="hidden"/>--%>
                        <%--                        <input type="submit" value="通过审核"/>--%>
                    <a class="edit"
                       href="book_examine_dealServlet?state=1&bookname=${book_examine.bookname}&author_name=${book_examine.author_name}&types=${book_examine.types}&brief_introduction=${book_examine.brief_introduction}">
                        <i class="fa fa-edit"></i>
                        通过
                    </a>
                </td>
                <td>
                    <a class="edit"
                       href="book_examine_dealServlet?state=0&bookname=${book_examine.bookname}&author_name=${book_examine.author_name}&types=${book_examine.types}&brief_introduction=${book_examine.brief_introduction}">
                        <i class="fa fa-edit"></i>
                        未通过
                    </a>
                </td>

            </tr>
            <%--            </form>--%>
        </c:forEach>
    </table>
</c:if>

</body>
</html>
